package com.why.serviceedu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.why.serviceedu.bean.FrontVo.CourseQueryVo;
import com.why.serviceedu.bean.Vo.courseInfoVo;
import com.why.serviceedu.bean.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.why.serviceedu.bean.FrontVo.CourseWebVo;
import com.why.serviceedu.bean.Vo.coursePublishVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author why
 * @since 2021-02-01
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveVo(courseInfoVo courseVo);

    courseInfoVo getCourseVoById(String courseId);

    void updateCourseById(courseInfoVo courseInfoVo);

    coursePublishVo publishCourseInfo(String courseId);

    void removeCourseInfoById(String courseId);


    List<EduCourse> getHotCourse();

    List<EduCourse> selectByTeacherId(String id);

    Map<String, Object> pageListWeb(Page<EduCourse> pageParam, CourseQueryVo courseQuery);

    CourseWebVo selectInfoWebById(String courseId);
}
